package com.suyuan.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 购物车
 */
public class CustomerCart implements Serializable{
    /**
     * 购物车编号
     */
    private Integer cartId;

    /**
     * 总价
     */
    private BigDecimal total;

    /**
     * 客户编号
     */
    private Integer customerId;

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public CustomerCart(){}

    public CustomerCart(BigDecimal total, Integer customerId) {
        this.total = total;
        this.customerId = customerId;
    }

    @Override
    public String toString() {
        return "CustomerCart{" +
                "cartId=" + cartId +
                ", total=" + total +
                ", customerId=" + customerId +
                '}';
    }
}